// 评价结果表
package dbModel

import "time"

type EvaluateTotalResult struct {
	Id            string    `json:"id" gorm:"primary_key; column:id;type:varchar(255)"`
	TaskId        string    `json:"taskId" gorm:"column:task_id; type:varchar(255)" validate:"required"`
	TemplateId    string    `json:"templateId" gorm:"column:template_id; type:varchar(255)" validate:"required"`
	QuotaId       string    `json:"quotaId" gorm:"column:quota_id; type:varchar(255)" validate:"required"`
	QuotaName     string    `json:"quotaName" gorm:"column:quota_name; type:varchar(255)" validate:"required"`
	AverageScore  float64   `json:"averageScore" gorm:"column:average_score; type:float"`
	MedianScore   float64   `json:"medianScore" gorm:"column:median_score; type:float"`
	AbsoluteScore float64   `json:"absoluteScore" gorm:"column:absolute_score; type:float"`
	StandardDeviationScore float64   `json:"standardDeviationScore" gorm:"column:standard_deviation_score; type:float"`
	CreateTime    time.Time `json:"-" gorm:"column:create_time; autoCreateTime"`
	UpdateTime    time.Time `json:"-" gorm:"column:update_time; autoUpdateTime"`
}

// 数据表
func (*EvaluateTotalResult) TableName() string {
	return "evaluate_total_result"
}
